package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.Wd_RoleDAO;
import com.wanda.model.Wd_RoleModel;
import com.wanda.service.Wd_RoleService;
@Service
public class Wd_RoleServiceImpl implements Wd_RoleService {
	
	@Autowired	
	private Wd_RoleDAO wd_RoleDAO;
	

	public int addRole(Wd_RoleModel Role) {
		return wd_RoleDAO.addRole(Role);
	}

	public int updateRole(Wd_RoleModel Role) {
		return wd_RoleDAO.updateRole(Role);
	}

	public int deleteRole(Wd_RoleModel Role) {
		return wd_RoleDAO.deleteRole(Role);
	}

	public List<Wd_RoleModel> selectAll() {
		return wd_RoleDAO.selectAll();
	}

	public Wd_RoleModel selectById(int Role_id) {
		return wd_RoleDAO.selectById(Role_id);
	}


}
